package com.youmu.sichuansfc.service.impl;

import com.youmu.sichuansfc.dao.FundManagerFundInvestDao;
import com.youmu.sichuansfc.domain.YoumuFundManagerFundInvest;
import com.youmu.sichuansfc.service.FundManagerFundInvestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;
import java.util.List;


@Service
@Transactional
public class FundManagerFundInvestServiceImpl  implements FundManagerFundInvestService{

    @Autowired
    FundManagerFundInvestDao fundManagerFundInvestDao;

    @Override
    public List<FundManagerFundInvestDao> findByManagerId(Long fundId) {
        return fundManagerFundInvestDao.findByManagerId(fundId);
    }

    @Override
    public YoumuFundManagerFundInvest upload(YoumuFundManagerFundInvest youmuFundManagerFundInvest) {
        return fundManagerFundInvestDao.upload(youmuFundManagerFundInvest);
    }
}
